package com.yonyou.isv.demo.openapi.api.accbook;

import com.yonyou.isv.demo.openapi.base.module.reponse.ApiDataArrayResponse;
import com.yonyou.isv.demo.openapi.api.BaseOpenApi;
import com.yonyou.isv.demo.openapi.api.OpenApiURL;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @description: 会计账簿
 * @author: nishch
 * @create: 2021-07-15
 **/
@Component
public class AccountBookApi extends BaseOpenApi {

    public List<Map<String, Object>> list(Map<String, Object> params) {
        ApiDataArrayResponse apiDataResponse =  postForEntity(OpenApiURL.ACCOUNT_BOOK,params, ApiDataArrayResponse.class);
        return getData(apiDataResponse);
    }

}
